
<?php $__env->startSection('title', '新增管理员'); ?>

<?php $__env->startSection('css'); ?>

<?php $__env->stopSection(); ?>

<?php $__env->startSection('content'); ?>
    <div class="row">
        <div class="col-lg-12">
            <div class="card">
                <div class="card-header"><h4>新增管理员</h4></div>
                <div class="card-body">
                    <form action="<?php echo e(url('admin/admin/add')); ?>" method="post">
                        <div class="form-group">
                            <label for="example-text-input"><span style="color:red;">*</span>&nbsp;用户名</label>
                            <input class="form-control" type="text" name="name" placeholder="请输入用户名" value="" max="20">
                        </div>
                        <div class="form-group">
                            <label for="example-text-input"><span style="color:red;">*</span>&nbsp;密码</label>
                            <input class="form-control" type="text" name="passwd" value="<?php echo e($passwd); ?>" readonly>
                            <small class="help-block">密码，后台自动生成，请妥善保存</small>
                        </div>
                        <div class="form-group">
                            <label for="example-text-input"><span style="color:red;">*</span>&nbsp;姓名</label>
                            <input class="form-control" type="text" name="true_name" placeholder="请输入姓名" value="" max="20">
                        </div>
                        <div class="form-group">
                            <label for="example-text-input">联系电话</label>
                            <input class="form-control" type="text" name="phone" placeholder="请输入联系电话" value="" max="20">
                        </div>
                        <div class="form-group">
                            <label for="example-text-input"><span style="color:red;">*</span>&nbsp;所属角色</label>
                            <select class="form-control" id="example-select" name="role_id" size="1">
                                <option value="">请选择所属角色</option>
                                <?php $__currentLoopData = $role_list; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $k=>$v): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <option value="<?php echo e($v['id']); ?>"><?php echo e($v['role_name']); ?></option>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </select>
                        </div>
                        <div class="form-group">
                            <button class="btn btn-primary submitForm" type="button">保存</button>
                            <button class="btn btn-secondary" type="button" onclick="window.history.back(-1);">返回</button>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('js'); ?>

<?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.public.layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH D:\phpstudy_8.1\WWW\my_admin\resources\views/admin/admin/admin_add.blade.php ENDPATH**/ ?>